#include "stdio.h"

int calu()
{
int a,i,s=0;
for(i=1;i<=1000;i++){
if(i%47==0)s=s+i;
}


}


/*Caution: you can only change codes in function above*/

main()
{
    printf("result: %d\n",calu());


   { int s[8];
   FILE *fp1, *fp2;
   int i;
   if ((fp1=fopen("k:\pin1.dat","r"))==NULL)
   { printf("Open file error,Please contact your teacher");
     exit(0);
     };
   if ((fp2=fopen("k:\you.dat","w"))==NULL)
   { printf("!Create file error,Please tell your teacher at once!");
     exit(0);
     };
    for (i=0;i<8;i++)
    {  fscanf(fp1,"%d",&s[i]);
       fprintf(fp2,"%d\n",s[i]-calu());
    }

   fclose(fp2);
   fclose(fp1);
   }
}

